package com.ygxsk.carhome.views.picker;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-07-14  11:41
 * @Description:通用的弹窗内容
 */
public class NomalCustomBean implements Parcelable {

    //列表的编码
    private String dictCode;
    //列表的文字
    private String dictLabel;
    //不执行序列化
    private transient boolean isChecked;


    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public String getDictLabel() {
        return dictLabel;
    }

    public void setDictLabel(String dictLabel) {
        this.dictLabel = dictLabel;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.dictCode);
        dest.writeString(this.dictLabel);
    }

    public void readFromParcel(Parcel source) {
        this.dictCode = source.readString();
        this.dictLabel = source.readString();
    }

    public NomalCustomBean() {
    }

    protected NomalCustomBean(Parcel in) {
        this.dictCode = in.readString();
        this.dictLabel = in.readString();
    }

    public static final Parcelable.Creator<NomalCustomBean> CREATOR = new Parcelable.Creator<NomalCustomBean>() {
        @Override
        public NomalCustomBean createFromParcel(Parcel source) {
            return new NomalCustomBean(source);
        }

        @Override
        public NomalCustomBean[] newArray(int size) {
            return new NomalCustomBean[size];
        }
    };

    @Override
    public String toString() {
        return "NomalCustomBean{" +
                "dictCode='" + dictCode + '\'' +
                ", dictLabel='" + dictLabel + '\'' +
                ", isChecked=" + isChecked +
                '}';
    }
}
